import request from '@/utils/request'

// 查询分站分销收益列表
export function listSubstations(query) {
  return request({
    url: '/system/substations/list',
    method: 'get',
    params: query
  })
}

// 查询分站分销收益详细
export function getSubstations(distriSubId) {
  return request({
    url: '/system/substations/' + distriSubId,
    method: 'get'
  })
}

// 新增分站分销收益
export function addSubstations(data) {
  return request({
    url: '/system/substations',
    method: 'post',
    data: data
  })
}

// 修改分站分销收益
export function updateSubstations(data) {
  return request({
    url: '/system/substations',
    method: 'put',
    data: data
  })
}

// 删除分站分销收益
export function delSubstations(distriSubId) {
  return request({
    url: '/system/substations/' + distriSubId,
    method: 'delete'
  })
}

// 导出分站分销收益
export function exportSubstations(query) {
  return request({
    url: '/system/substations/export',
    method: 'get',
    params: query
  })
}


export function findSum(query) {
  return request({
    url: '/system/substations/findSum',
    method: 'get',
    params: query
  })
}


export function findAll(query) {
  return request({
    url: '/system/substations/findAll',
    method: 'get',
    params: query
  })
}
